﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SSE657.BahMap.DataAccess;
using SSE657.BahMap.Common;

namespace SSE657.BahMap.Domain.Test.Mocks
{
    class MockSchoolDataConnector : ISchoolDataConnector
    {
        public IEnumerable<Common.SchoolData> GetSchools(int zipcode)
        {
            if (zipcode > 0)
                return new List<SchoolData>(new SchoolData[] { new SchoolData() });
            else
                return new List<SchoolData>();
        }

        public IEnumerable<Common.SchoolData> GetSchools(string mha)
        {
            if (!String.IsNullOrEmpty(mha))
                return new List<SchoolData>(new SchoolData[] { new SchoolData() });
            else
                return new List<SchoolData>();
        }
    }
}
